package com.hospital.dto;

import com.alibaba.excel.annotation.ExcelProperty;

import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hospital.entity.Equipment;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
/**
 * 仪器检查表
 * 副本，只为导出
 */
@ColumnWidth(25)
public class EqucheckDto {
    private Integer  id;
    /**
     * 仪器id
     */
   @ExcelProperty(value = "仪器id")
    private Integer  equid;
    /**
     * 仪器状态
     */
    @ExcelProperty(value = "仪器状态")
    private String  ondition;
    @DateTimeFormat("yyyy-MM-dd")
    @ExcelProperty(value = "检查时间")
    private Date ctime;//检查时间
    /**
     * 员工id
     */
    @ExcelProperty(value = "检查员工id")
    private Integer  logisticsid;
    /**
     * 作为子查询条件
     */
    /**
     * 照片
     */
    @ExcelProperty(value = "照片")
    private String logourl;

    private Equipment equipment;
}
